<!--
  This file is a part of the open-eBackup project.
  This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
  If a copy of the MPL was not distributed with this file, You can obtain one at
  http://mozilla.org/MPL/2.0/.
  
  Copyright (c) [2024] Huawei Technologies Co.,Ltd.
  
  THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
  EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
  MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
  -->

<div class="list-container">
  <lv-pro-table #dataTable [config]="tableConfig" [data]="tableData"></lv-pro-table>
</div>

<ng-template #clusterTypeTpl let-item>
  <span lv-overflow>
    {{item.extendInfo?.clusterType | textMap : 'oracleClusterType'}}
  </span>
</ng-template>

<ng-template #slaComplianceExtraTpl>
  <div class="custom-icon">
    <aui-sla-compliance-tooltip></aui-sla-compliance-tooltip>
  </div>
</ng-template>

<ng-template #storageDeviceTpl let-item>
  <p lv-overflow *ngIf="item.environment?.subType !== dataMap.Device_Storage_Type.Other.value">
      {{item.environment?.name | nil}}
  </p>
  <p *ngIf="item.environment?.subType === dataMap.Device_Storage_Type.Other.value">
      --
  </p>
  <p lv-overflow class='aui-text-help-sm'
      *ngIf="item.environment?.subType !== dataMap.Device_Storage_Type.Other.value">
      {{item.environment?.endpoint | nil}}
  </p>
</ng-template>

<ng-template #databaseTypeTpl let-item>
  <span lv-overflow>{{ item.sapHanaDbType | textMap:'saphanaDatabaseType' }}</span>
</ng-template>

<ng-template #sapHanaDbDeployType let-item>
  <span lv-overflow> {{item.sapHanaDbDeployType | textMap:'saphanaDatabaseDeployType'}}</span>
</ng-template>